// Copyright 2022 a.o.smith ALL Rights Reserved
package com.liuxinlong.modules.dao.impl;

import com.liuxinlong.modules.dao.DifficultyDao;
import com.liuxinlong.modules.entity.Difficulty;
import com.liuxinlong.modules.mapper.DifficultyMapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 类描述
 * <p>
 * 此类关联设计的功能
 *
 * @author liuxinlong@hotwater.com.cn
 * @version 1.0.0
 * @since 2023年3月22日
 */
@Service
public class DifficultyDaoImpl extends ServiceImpl<DifficultyMapper, Difficulty>
        implements DifficultyDao {
    
    @Override
    public List<Difficulty> pageDifficultyList(Map<String, Object> queryParam) {
        return baseMapper.pageDifficultyList(queryParam);
    }

    @Override
    public int getDifficultyCount(Map<String, Object> queryParam) {
        return baseMapper.getDifficultyCount(queryParam);
    }

    @Override
    public Map<String, Map<String, Object>> getDifficultyProcess(List<String> projectList) {
        return baseMapper.getDifficultyProcess(projectList);
    }

    @Override
    public Map<String, Object> getDifficultySummary(String projectId) {
        return baseMapper.getDifficultySummary(projectId);
    }

    @Override
    public List<Difficulty> pageTimeoutDifficultyList(Map<String, Object> queryParam) {
        return baseMapper.pageTimeoutDifficultyList(queryParam);
    }

    @Override
    public void batchUpdateStatus(List<String> difficultyList, int status) {
        baseMapper.batchUpdateStatus(difficultyList,status);
    }

    @Override
    public Map<String, Map<String, String>> getDifficultyMap(String projectId) {
        return baseMapper.getDifficultyMap(projectId);
    }

    @Override
    public List<Difficulty> getAvailableRisk() {
        return baseMapper.getAvailableRisk();
    }
}
